/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_TYPE_INFO")
public class BookTypeInfo {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "TYPE_ID")
    private Long typeId;
    
    @Column(name = "TYPE_NAME",length = 60)
    private String typeName;
    /**
     * 可借天数
     */
    @Column(name = "BORROW_TIME")
    private Integer borrowTime;
    
    @Column(name = "UPPERSHELF_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date upperShelfTime;
    
    @Column(name = "LOWERSHELF_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lowerShelfTime;
    
    @Column(name = "DELETED_FLAG")
    private Short deletedFlag;

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Integer borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Date getUpperShelfTime() {
        return upperShelfTime;
    }

    public void setUpperShelfTime(Date upperShelfTime) {
        this.upperShelfTime = upperShelfTime;
    }

    public Date getLowerShelfTime() {
        return lowerShelfTime;
    }

    public void setLowerShelfTime(Date lowerShelfTime) {
        this.lowerShelfTime = lowerShelfTime;
    }

    public Short getDeletedFlag() {
        return deletedFlag;
    }

    public void setDeletedFlag(Short deletedFlag) {
        this.deletedFlag = deletedFlag;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"BookTypeInfo\":{\"typeId\":");
        builder.append(typeId);
        builder.append(", typeName\":");
        builder.append(typeName);
        builder.append(", borrowTime\":");
        builder.append(borrowTime);
        builder.append(", upperShelfTime\":");
        builder.append(upperShelfTime);
        builder.append(", lowerShelfTime\":");
        builder.append(lowerShelfTime);
        builder.append(", deletedFlag\":");
        builder.append(deletedFlag);
        builder.append("}");
        return builder.toString();
    }
    
    

}
